/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.deployment.relatorio;

import br.com.deployment.daoImpl.QuestionnaireResponseDAOImpl;
import br.com.deployment.entities.QuestionnaireResponse;
import java.util.Date;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author ely
 */
@ManagedBean
@SessionScoped
public class ManagerRelEdictDate {
    
    @EJB
    QuestionnaireResponseDAOImpl quesResponseService;
    
    private List<QuestionnaireResponse> lstQuestionnaireResponse;
    Date dataIni;
    Date dataFim;
    
    public ManagerRelEdictDate(){
       dataIni = null;
       dataFim = null;
    }
    
    public void searchDate(){
        lstQuestionnaireResponse = quesResponseService.findDate(dataIni, dataFim);
        System.out.println(lstQuestionnaireResponse);
    }

    public List<QuestionnaireResponse> getLstQuestionnaireResponse() {
        return lstQuestionnaireResponse;
    }

    public void setLstQuestionnaireResponse(List<QuestionnaireResponse> lstQuestionnaireResponse) {
        this.lstQuestionnaireResponse = lstQuestionnaireResponse;
    }

    public Date getDataIni() {
        return dataIni;
    }

    public void setDataIni(Date dataIni) {
        this.dataIni = dataIni;
    }

    public Date getDataFim() {
        return dataFim;
    }

    public void setDataFim(Date dataFim) {
        this.dataFim = dataFim;
    }
    
    
    
}
